public class Dog extends Pet {
    public void eat () {
        System.out.println("dog eats meat");
    }
    public void fight() {//子类dog中独有方法
        System.out.println("dog can fight with bad people");
    }
}
